////import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
//
//package cn.steel;
////
////import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
//
//
//import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
////
//public class PasswordTest {
//    public static void main(String[] args) {
//        // 从数据库获取的 buyer1 的加密密码
//        String storedPassword = "$2a$10$sDo1LePLr93Voe/R4uHar.yyyXQzlzVp54xkEYur55wg5raoM.HtC"; // 例如 $2a$10$...
//        String inputPassword = "buyer1"; // 输入的密码
//
//        // 创建 BCryptPasswordEncoder 实例
//        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
//
//        // 验证密码匹配
//        boolean matches = encoder.matches(inputPassword, storedPassword);
//        System.out.println("Password matches: " + matches);
//
//        // 如果不匹配，打印加密后的输入密码进行对比
//        if (!matches) {
//            System.out.println("Encoded input password: " + encoder.encode(inputPassword));
//        }
//    }
//}
//////
//////    public static void main(String[] args) {
//////        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
//////        System.out.println(encoder.encode("admin"));
//////    }}
